Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Types and Constants


The Editable Text Selection Structure

NEW WITH THE APPEARANCE MANAGER

You can pass a pointer to the editable text selection structure to GetControlData and SetControlData to access and set the current selection range in an editable text control.

An editable text selection structure is of type ControlEditTextSelectionRec:

struct ControlEditTextSelectionRec {
   SInt16               selStart;
   SInt16               selEnd;
};
typedef struct ControlEditTextSelectionRec ControlEditTextSelectionRec;
typedef ControlEditTextSelectionRec *ControlEditTextSelectionPtr;

Field Description
selStart
A signed 16-bit integer indicating the beginning of the editable text selection.
selEnd
A signed 16-bit integer indicating the end of the editable text selection.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998